package cn.gjxblog.api;

import cn.gjxblog.common.model.HttpResult;
import cn.gjxblog.model.dto.BlogQueryDTO;
import cn.gjxblog.model.entity.Blog;
import cn.gjxblog.model.vo.BlogVO;
import com.github.pagehelper.PageInfo;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 作用:
 * 作者:gjx
 * 版本:V1.0
 * 创建时间: 2019/1/19 18:07
 */
@FeignClient(value = "comment-server",path = "/blog")
public interface BlogServerFegin {

    @RequestMapping("/queryBlog")
    HttpResult<PageInfo<BlogVO>> queryBlog(@RequestBody BlogQueryDTO blogQueryDTO);

    @GetMapping("/getBlog")
    HttpResult<BlogVO> getBlog(@RequestParam("id") String id);
}
